{% extends 'layout/basic.html' %}
{% load static %}
{% block title %}登陆{% endblock %}
{% block css %}
    <link rel="stylesheet" href="{% static 'plugin/bootstrap/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'tracer/css/account.css' %}">
{% endblock css %}
{% block content %}
        <div class="account">
            <div class="title">用户短信登陆</div>
                <form class="loginFormData" method="POST" novalidate>
                {% csrf_token %}
                    {% for field in form %}
                        {% if field.name == 'code'%}
                          <div class="form-group">
                            <label for="{{field.id_for_label}}">{{field.label}}</label>
                            <div class="row">
                                <div class="col-xs-7">
                                    {{ field }}
                                    <span class="error-msg"></span>
                                </div>

                                <div class="col-xs-5">
                                    <input id="loginSmsBtn" type="button" class="btn btn-default" value="点击获取验证码">
                                </div>

                            </div>
                          </div>
                        {% else %}
                             <div class="form-group">
                                <label for="{{field.id_for_label}}">{{field.label}}</label>
                                {{field}}
                                <span class="error-msg"></span>
                             </div>
                        {% endif %}
                    {% endfor %}
                <div>
                    <div style="float: right;">
                        <a href="{% url 'websass:login' %}">用户名密码登陆？</a>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-3">
                          <button id="loginBtn" type="button" class="btn btn-primary">登  陆</button>
                    </div>
                </div>
                </form>


		</div>

{% endblock %}
{% block js %}
    <script type="text/javascript" src="{% static 'tracer/js/login.js' %}"></script>
{% endblock %}